local skel = fk.CreateSkill {
  name = "efengqi__jieyin",
}

Fk:loadTranslationTable{
  ["efengqi__jieyin"] = "结姻",
  [":efengqi__jieyin"] = "出牌阶段限一次，你可以视为使用【推心置腹】，此牌对男性角色使用无距离限制。",

  ["#efengqi__jieyin"] = "结姻：你可以视为使用【推心置腹】",

  ["$efengqi__jieyin1"] = "随夫嫁娶，宜室宜家。",
  ["$efengqi__jieyin2"] = "得遇夫君，妾身福分。",
}

skel:addEffect("viewas", {
  anim_type = "support",
  prompt = "#efengqi__jieyin",
  card_filter = Util.FalseFunc,
  view_as = function (self)
    local c = Fk:cloneCard("sincere_treat")
    c.skillName = self.name
    return c
  end,
  times = function (self, player)
    return 1 - player:usedSkillTimes(self.name, Player.HistoryPhase)
  end,
  enabled_at_play = function (self, player)
    return player:usedSkillTimes(self.name, Player.HistoryPhase) == 0
  end,
  enabled_at_response = Util.FalseFunc,
})

skel:addEffect("targetmod", {
  bypass_distances =  function(self, player, skill, card, to)
    return card and table.contains(card.skillNames, skel.name) and to and to:isMale()
  end,
})

return skel
